package chixing.day12;

import chixing.day12.exception.BalanceNotEnoughException;

public class AccountTest {
    public static void main(String[] args) throws BalanceNotEnoughException {
        CreditAccount creditAccount1 = new CreditAccount(777, 888);
        creditAccount1.withdraw(999);
        CreditAccount creditAccount2 = new CreditAccount(777, 888);
        creditAccount2.transfer(1000,creditAccount1);

    }
}
